import {useMouse} from './useMouse';

export default ()=>{

    let {x,y} = useMouse();

    return(
        <div>
            <h1>组件1</h1>
            <p>鼠标的位置: x:{x}--y:{y}</p>
        </div>
    )
}